package cn.com.gridinfo.sooc.core.home.activity;

import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.FrameLayout;

import butterknife.ButterKnife;
import butterknife.InjectView;
import cn.com.gridinfo.sooc.R;
import cn.com.gridinfo.sooc.base.BaseSoocActivity;

/**
 * 引导页面
 *
 * @author jieli
 */
public class LeadingActivity extends BaseSoocActivity {

    @InjectView(R.id.leading_page)
    LeadingShowView leadingPage;//引导页
    @InjectView(R.id.leading_layout)
    FrameLayout leadingLayout;//引导页外布局 frame

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

        View view = View.inflate(this, R.layout.activity_leading, null);
        setContentView(view);
        ButterKnife.inject(this);


        //设置引导页面 点击立即体验
        leadingPage.setViews(getImageUrls(), this,leadingLayout);
    }


    private int[] getImageUrls() {
        //引导页图片的url
        int[] imageUrls = new int[]{
                R.mipmap.leading01,
                R.mipmap.leading02,
                R.mipmap.leading03,
        };
        return imageUrls;
    }
}
